<?php
class widget_statistic extends CWidget {
  public function run() {
    // Execute the counter before you use the getter-funtions!
    Yii::app()->counter->refresh();
    $this->render('widget_statistic');
  }
}
?>